<template>
  <div id="app">
    <transition name="ani">
      <router-view class="page"/>
    </transition>
  </div>
</template>

<style>
* {
  box-sizing: border-box;
}
html,body, #app, .page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
.page {
  position: absolute;
  left: 0;
  top: 0;
}
.ani-enter {
  left: 100%;
}
.ani-leave-to {
  left: -100%;
  transform: scale(0) rotate(180deg);
  opacity: 0;
  transform-origin: center;
}
.ani-enter-active, .ani-leave-active {
  transition: all 0.5s linear;
}
</style>
